<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<html>
<head>
	<title>应收结算单管理</title>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8">
	<meta name="decorator" content="ani"/>
	<%@ include file="/webpage/include/bootstraptable.jsp"%>
	<%@include file="/webpage/include/treeview.jsp" %>
	<%@include file="jsList.js" %>
</head>
<body>
	<div class="wrapper wrapper-content">
	<div class="panel panel-primary">
	<div class="panel-heading">
		<h3 class="panel-title">应收结算单列表</h3>
	</div>
	<div class="panel-body">
		<sys:message content="${message}"/>
	
	<!-- 搜索 -->
	<div class="accordion-group">
	<div id="collapseTwo" class="accordion-body collapse">
		<div class="accordion-inner">
			<form:form id="searchForm" modelAttribute="js" class="form form-horizontal well clearfix">
				<div class="col-xs-6 col-sm-3 col-md-2">
					<label class="label-item single-overflow pull-left" title="项目：">发票号：</label>
					<form:input path="fph" htmlEscape="false" maxlength="64"  class=" form-control"/>
				</div>
			 <div class="col-xs-6 col-sm-3 col-md-2">
				<label class="label-item single-overflow pull-left" title="状态：">状态：</label>
				 <form:select path="status" class="form-control">
					 <option value="">请选择</option>
					 <option value="未核销">未核销</option>
					 <option value="部分核销">部分核销</option>
					 <option value="已核销">已核销</option>
					 <option value="已关账">已关账</option>
				 </form:select>			</div>
				<div class="col-xs-6 col-sm-3 col-md-2">
					<label class="label-item single-overflow pull-left" title="项目名称：">开票日期：</label>
					<div class="col-xs-12">
						<div class='input-group form_datetime' id='date'>
							<input type='text'  name="date" class="form-control "/>
							<span class="input-group-addon">
			                        <span class="glyphicon glyphicon-calendar"></span>
			                    </span>
						</div>
					</div>
				</div>
				<shiro:hasPermission name="fee:js:pro">
					<div class="col-xs-6 col-sm-3 col-md-2">
				<label class="label-item single-overflow pull-left" title="：">项目：</label>
				<select name="pro" class=" form-control">
					<option value="">请选择</option>
					<option value="武汉润滑油仓储项目">武汉润滑油仓储项目</option>
					<option value="北京润滑油运输项目">北京润滑油运输项目</option>
					<option value="天津润滑油运输项目">天津润滑油运输项目</option>
					<option value="西安润滑油仓储配送项目">西安润滑油仓储配送项目</option>
					<option value="郑州润滑油运输项目">郑州润滑油运输项目</option>
					<option value="石家庄润滑油仓储配送项目">石家庄润滑油仓储配送项目</option>
				</select>
			</div>
				</shiro:hasPermission>
				<div class="col-xs-6 col-sm-3 col-md-2">
			<div style="margin-top:26px">
			  <a  id="search" class="btn btn-primary btn-rounded  btn-bordered btn-sm"><i class="fa fa-search"></i> 查询</a>
			  <a  id="reset" class="btn btn-primary btn-rounded  btn-bordered btn-sm" ><i class="fa fa-refresh"></i> 重置</a>
			 </div>
	    </div>	
	</form:form>
	</div>
	</div>
	</div>
	
	<!-- 工具栏 -->
	<div id="toolbar">
		<shiro:hasPermission name="fee:js:qxkp">
		<button id="edit" class="btn btn-danger" disabled onclick="qxkp()">
			取消开票
		</button>
		</shiro:hasPermission>
		<shiro:hasPermission name="fee:js:hx">
				<button id="remove" class="btn btn-success" disabled onclick="hx()">
	            	 核销
	        	</button>
		</shiro:hasPermission>
		<shiro:hasPermission name="fee:js:qxhx">
		<button id="qxhx" class="btn btn-primary" disabled onclick="qxhx()">
			取消核销
		</button>
		</shiro:hasPermission>
		<shiro:hasPermission name="fee:js:gz">
		<button id="gz" class="btn btn-danger" disabled onclick="gz()">
			关账
		</button>
		</shiro:hasPermission>

	        	<a class="accordion-toggle btn btn-default" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
					<i class="fa fa-search"></i> 检索
				</a>
		    </div>
		
	<!-- 表格 -->
	<table id="jsTable" class="table text-nowrap"  data-toolbar="#toolbar"></table>

    <!-- context menu -->

	</div>
	</div>
	</div>
	<div class="modal fade" id="model" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
					<h4 class="modal-title" id="myModalLabel">取消核销</h4>
				</div>
				<div class="modal-body">
					<table class="table table-bordered">
						<thead>
						<th></th>
						<th>收款人</th>
						<th>收款时间</th>
						<th>收款方式</th>
						<th>收款金额</th>
						<th>票据号码</th>
						<th>备注</th>
						</thead>
						<tbody id="detil"></tbody>
					</table>

				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					<button type="button" class="btn btn-primary" onclick="qdqx()">确定</button>
				</div>
			</div><!-- /.modal-content -->
		</div><!-- /.modal -->
	</div>

</body>

</html>